﻿/////////////////////////////////////////////////
//文件名:PObject
//描  述:
//创建者:刘凡平(Iveely Liu)
//邮  箱:945222889@qq.com
//组  织:Iveely
//年  份:2012/5/21 19:08:13
///////////////////////////////////////////////


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IveelySE.BigData.Common
{
    /// <summary>
    /// 超级父类(用户的类必须继承此类)
    /// </summary>
    [Serializable]
    public class PObject
    {
        private static int innerId = 0;

        /// <summary>
        /// 编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 文件名
        /// </summary>
        public string fileName { get; set; }
        /// <summary>
        /// 存放值
        /// </summary>
        public Object value { get; set; }
        /// <summary>
        /// 设置文件名
        /// </summary>
        /// <param name="fileName"></param>
        public PObject(string fileName, Object value)
        {
            this.fileName = fileName;
            this.Id = innerId++;
            this.value = value;
        }
    }
}
